package day1.ll;

import java.util.Arrays;

public class Test1 {
    public static void main1(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a>b||a++<100);
        System.out.println("a="+a);

    }

    public static void main2(String[] args) {
        for (int i = 0; i < 10; i++) {
            if(i==3){
                return;
            }
            System.out.println("i="+i);
        }
        System.out.println("........");
    }

    //数组
    public static void main3(String[] args) {
        int[]arr1 = {1,2,3};
        int[]arr0 = new int[10];
//        arr1[0]=1;
//        System.out.println(arr1[0])
        int[]arr2 = new int[]{1,2,3};

        int[]arr3;
        arr3 = new int[]{1,2,3};

    }

    public static void main4(String[] args) {
        int[]arr = {3,2,1,5,12,45};
        Arrays.sort(arr);
        for (int i : arr) {
            System.out.println(i);
        }
    }
}
